# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit eutils

DESCRIPTION="Civil is a cross-platform, turn-based, networked strategy game,developed using Python, Pygame and SDL."
HOMEPAGE="http://civil.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nls"

DEPEND=">=dev-libs/glib-2.4
		dev-python/pygame
		>=sys-apps/dbus-0.20"

src_compile() {
	econf \
		|| die
	emake || die
}

src_install() {
	sed -ie "s:python2.1:python2.4:" src/Makefile
	make DESTDIR=${D} install || die
		
}
